package com.pinecone.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 直播间评论信息表
 * Created by xiaowang on 2017/9/26.
 */
@Data
@Accessors(chain=true)
public class LiveRoomCommentDTO implements Serializable{
    private static final long serialVersionUID = 1L;
    //评论对应直播间id
    @NotNull(message = "直播间不能为空")
    @Size(max = 255)
    private String liveRoomId;
    //评论者昵称
    @NotNull(message = "用户名称不能为空")
    @Size(max = 255)
    private String nickName;
    //评论者头像
    private String avatar;
    //评论内容
    @NotNull(message = "评论不能为空")
    @Size(max = 500)
    private String comment;
}
